# -*- encoding:utf-8 -*-
# @time: 2023/4/8 20:01
# @author: Maxs_hu
from django.template import Library
from web import models
register = Library()


@register.filter
def color(nid):
    return models.TransactionRecord.charge_type_class_mapping[nid]
